<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="Quaternion,org.papervision3d.core.math.Quaternion,DEGTORAD,EPSILON,RADTODEG,w,x,y,z,matrix,modulo,add,calculateMultiply,clone,conjugate,createFromAxisAngle,createFromEuler,createFromMatrix,createFromOrthoMatrix,dot,mult,multiply,normalize,setFromAxisAngle,setFromEuler,slerp,slerpOld,sub,toEuler,toString" name="keywords">
<title>org.papervision3d.core.math.Quaternion</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Quaternion - API Documentation';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Papervision3D 2.1 日本語 リファレンスガイド</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?org/papervision3d/core/math/Quaternion.html&amp;org/papervision3d/core/math/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Quaternion</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Quaternion"); titleBar_setSubNav(true,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.papervision3d.core.math</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Quaternion</td>
</tr>
</table>
<p></p>
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#matrix">matrix</a> : <a href="../math/Matrix3D.html">Matrix3D</a>
<div class="summaryTableDescription">[read-only]
   <span lang="ja">クオータニオンの行列表示を取得します。</span>
   <span lang="en">Gets the matrix representation of this Quaternion.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#modulo">modulo</a> : Number<div class="summaryTableDescription">[read-only]
   モジュロです。
   
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#w">w</a> : Number<div class="summaryTableDescription"> </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#x">x</a> : Number<div class="summaryTableDescription"> </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#y">y</a> : Number<div class="summaryTableDescription"> </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#z">z</a> : Number<div class="summaryTableDescription"> </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Quaternion()">Quaternion</a>(x:Number = 0, y:Number = 0, z:Number = 0, w:Number = 1)</div>
<div class="summaryTableDescription">
   コンストラクタ
   
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#add()">add</a>(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#calculateMultiply()">calculateMultiply</a>(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):void</div>
<div class="summaryTableDescription">
   乗算です。
   
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clone()">clone</a>():<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">
   クローン
   
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#conjugate()">conjugate</a>(a:<a href="Quaternion.html">Quaternion</a>):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">共役です。</span>
   <span lang="en">Conjugate.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#createFromAxisAngle()">createFromAxisAngle</a>(x:Number, y:Number, z:Number, angle:Number):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">軸と角からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from a axis and a angle.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#createFromEuler()">createFromEuler</a>(ax:Number, ay:Number, az:Number, useDegrees:Boolean = false):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">オイラー角からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from Euler angles.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#createFromMatrix()">createFromMatrix</a>(matrix:<a href="Matrix3D.html">Matrix3D</a>):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">行列からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from a matrix.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#createFromOrthoMatrix()">createFromOrthoMatrix</a>(m:<a href="Matrix3D.html">Matrix3D</a>):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">正規直交行列からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from a orthonormal matrix.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#dot()">dot</a>(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):Number</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">ドット積です。</span>
   <span lang="en">Dot product.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#mult()">mult</a>(b:<a href="Quaternion.html">Quaternion</a>):void</div>
<div class="summaryTableDescription">
   <span lang="ja">もうひとつのクオータニオンによって乗算します。</span>
   <span lang="en">Multiply by another Quaternion.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#multiply()">multiply</a>(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">乗算です。</span>
   <span lang="en">Multiply.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#normalize()">normalize</a>():void</div>
<div class="summaryTableDescription">
   正規化します。
   
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#setFromAxisAngle()">setFromAxisAngle</a>(x:Number, y:Number, z:Number, angle:Number):void</div>
<div class="summaryTableDescription">
   <span lang="ja">軸と角からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from a axis and a angle.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#setFromEuler()">setFromEuler</a>(ax:Number, ay:Number, az:Number, useDegrees:Boolean = false):void</div>
<div class="summaryTableDescription">
   <span lang="ja">オイラー角からこのクオータニオンを設定します。</span>
   <span lang="en">Sets this Quaternion from Euler angles.</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#slerp()">slerp</a>(qa:<a href="Quaternion.html">Quaternion</a>, qb:<a href="Quaternion.html">Quaternion</a>, alpha:Number):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">SLERP(球面線形補間 - Spherical Linear intERPolation)です。</span>
   <span lang="en">SLERP (Spherical Linear intERPolation).</div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#slerpOld()">slerpOld</a>(qa:<a href="Quaternion.html">Quaternion</a>, qb:<a href="Quaternion.html">Quaternion</a>, alpha:Number):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]
   <span lang="ja">SLERP(球面線形補間)です。</span>
   <span lang="en">SLERP (Spherical Linear intERPolation).</span>
   
   </div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#sub()">sub</a>(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):<a href="../math/Quaternion.html">Quaternion</a>
</div>
<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toEuler()">toEuler</a>():<a href="../math/Number3D.html">Number3D</a>
</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toString()">toString</a>():String</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DEGTORAD">DEGTORAD</a> : Number<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#EPSILON">EPSILON</a> : Number = 0.000001<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#RADTODEG">RADTODEG</a> : Number<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">Quaternion</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="matrix"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">matrix</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>matrix:<a href="../math/Matrix3D.html">Matrix3D</a></code>&nbsp;&nbsp;[read-only]<p>
   <span lang="ja">クオータニオンの行列表示を取得します。</span>
   <span lang="en">Gets the matrix representation of this Quaternion.</span>
   
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get matrix():<a href="../math/Matrix3D.html">Matrix3D</a></code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">org.papervision3d.core.Matrix3D</div>
</div>
<a name="modulo"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">modulo</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>modulo:Number</code>&nbsp;&nbsp;[read-only]<p>
   モジュロです。
   
   
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get modulo():Number</code>
<br>
</div>
<a name="w"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">w</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var w:Number</code><p> </p></div>
<a name="x"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">x</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var x:Number</code><p> </p></div>
<a name="y"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">y</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var y:Number</code><p> </p></div>
<a name="z"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">z</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var z:Number</code><p> </p></div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="Quaternion()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Quaternion</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function Quaternion(x:Number = 0, y:Number = 0, z:Number = 0, w:Number = 1)</code><p>
   コンストラクタ
   
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">x</span>:Number</code> (default = <code>0</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">y</span>:Number</code> (default = <code>0</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">z</span>:Number</code> (default = <code>0</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">w</span>:Number</code> (default = <code>1</code>)<code></code></td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="add()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">add</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function add(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):<a href="../math/Quaternion.html">Quaternion</a></code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
</div>
<a name="calculateMultiply()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">calculateMultiply</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function calculateMultiply(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):void</code><p>
   乗算です。
   
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
</div>
<a name="clone()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clone</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function clone():<a href="../math/Quaternion.html">Quaternion</a></code><p>
   クローン
   
   
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
</div>
<a name="conjugate()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">conjugate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function conjugate(a:<a href="Quaternion.html">Quaternion</a>):<a href="../math/Quaternion.html">Quaternion</a></code><p>
   <span lang="ja">共役です。</span>
   <span lang="en">Conjugate.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
</div>
<a name="createFromAxisAngle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">createFromAxisAngle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function createFromAxisAngle(x:Number, y:Number, z:Number, angle:Number):<a href="../math/Quaternion.html">Quaternion</a></code><p>
   <span lang="ja">軸と角からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from a axis and a angle.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">x</span>:Number</code> &mdash;  X-axis
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">y</span>:Number</code> &mdash;  Y-axis
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">z</span>:Number</code> &mdash;  Z-axis
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">angle</span>:Number</code> &mdash; angle in radians.
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
</div>
<a name="createFromEuler()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">createFromEuler</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function createFromEuler(ax:Number, ay:Number, az:Number, useDegrees:Boolean = false):<a href="../math/Quaternion.html">Quaternion</a></code><p>
   <span lang="ja">オイラー角からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from Euler angles.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">ax</span>:Number</code> &mdash; X-angle in radians.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">ay</span>:Number</code> &mdash; Y-angle in radians.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">az</span>:Number</code> &mdash; Z-angle in radians.
   
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">useDegrees</span>:Boolean</code> (default = <code>false</code>)<code></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
</div>
<a name="createFromMatrix()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">createFromMatrix</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function createFromMatrix(matrix:<a href="Matrix3D.html">Matrix3D</a>):<a href="../math/Quaternion.html">Quaternion</a></code><p>
   <span lang="ja">行列からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from a matrix.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">matrix</span>:<a href="Matrix3D.html">Matrix3D</a></code> &mdash; a matrix. </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code> &mdash; 
                        the created Quaternion
   
                        
                     </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">org.papervision3d.core.Matrix3D</div>
</div>
<a name="createFromOrthoMatrix()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">createFromOrthoMatrix</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function createFromOrthoMatrix(m:<a href="Matrix3D.html">Matrix3D</a>):<a href="../math/Quaternion.html">Quaternion</a></code><p>
   <span lang="ja">正規直交行列からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from a orthonormal matrix.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">m</span>:<a href="Matrix3D.html">Matrix3D</a></code> &mdash; a orthonormal matrix. </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code> &mdash; 
                         the created Quaternion
   
                        
                     </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">org.papervision3d.core.Matrix3D</div>
</div>
<a name="dot()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">dot</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function dot(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):Number</code><p>
   <span lang="ja">ドット積です。</span>
   <span lang="en">Dot product.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Number</code></td>
</tr>
</table>
</div>
<a name="mult()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">mult</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function mult(b:<a href="Quaternion.html">Quaternion</a>):void</code><p>
   <span lang="ja">もうひとつのクオータニオンによって乗算します。</span>
   <span lang="en">Multiply by another Quaternion.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:<a href="Quaternion.html">Quaternion</a></code> &mdash; The Quaternion to multiply by.
   </td>
</tr>
</table>
</div>
<a name="multiply()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">multiply</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function multiply(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):<a href="../math/Quaternion.html">Quaternion</a></code><p>
   <span lang="ja">乗算です。</span>
   <span lang="en">Multiply.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
</div>
<a name="normalize()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">normalize</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function normalize():void</code><p>
   正規化します。
   
   
   </p></div>
<a name="setFromAxisAngle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">setFromAxisAngle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function setFromAxisAngle(x:Number, y:Number, z:Number, angle:Number):void</code><p>
   <span lang="ja">軸と角からクオータニオンを作成します。</span>
   <span lang="en">Creates a Quaternion from a axis and a angle.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">x</span>:Number</code> &mdash;  X-axis
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">y</span>:Number</code> &mdash;  Y-axis
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">z</span>:Number</code> &mdash;  Z-axis
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">angle</span>:Number</code> &mdash; angle in radians.
   
   </td>
</tr>
</table>
</div>
<a name="setFromEuler()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">setFromEuler</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function setFromEuler(ax:Number, ay:Number, az:Number, useDegrees:Boolean = false):void</code><p>
   <span lang="ja">オイラー角からこのクオータニオンを設定します。</span>
   <span lang="en">Sets this Quaternion from Euler angles.</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">ax</span>:Number</code> &mdash; X-angle in radians.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">ay</span>:Number</code> &mdash; Y-angle in radians.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">az</span>:Number</code> &mdash; Z-angle in radians.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">useDegrees</span>:Boolean</code> (default = <code>false</code>)<code></code></td>
</tr>
</table>
</div>
<a name="slerp()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">slerp</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function slerp(qa:<a href="Quaternion.html">Quaternion</a>, qb:<a href="Quaternion.html">Quaternion</a>, alpha:Number):<a href="../math/Quaternion.html">Quaternion</a></code><p>
   <span lang="ja">SLERP(球面線形補間 - Spherical Linear intERPolation)です。</span>
   <span lang="en">SLERP (Spherical Linear intERPolation). </span>
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">qa</span>:<a href="Quaternion.html">Quaternion</a></code> &mdash;  start quaternion
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">qb</span>:<a href="Quaternion.html">Quaternion</a></code> &mdash;  end quaternion
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">alpha</span>:Number</code> &mdash; a value between 0 and 1
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code> &mdash; 
                        the interpolated quaternion.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="slerpOld()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">slerpOld</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function slerpOld(qa:<a href="Quaternion.html">Quaternion</a>, qb:<a href="Quaternion.html">Quaternion</a>, alpha:Number):<a href="../math/Quaternion.html">Quaternion</a></code><p>
   <span lang="ja">SLERP(球面線形補間)です。</span>
   <span lang="en">SLERP (Spherical Linear intERPolation).</span>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">qa</span>:<a href="Quaternion.html">Quaternion</a></code> &mdash;  start quaternion
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">qb</span>:<a href="Quaternion.html">Quaternion</a></code> &mdash;  end quaternion
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">alpha</span>:Number</code> &mdash; a value between 0 and 1
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code> &mdash; 
                        the interpolated quaternion.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="sub()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">sub</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function sub(a:<a href="Quaternion.html">Quaternion</a>, b:<a href="Quaternion.html">Quaternion</a>):<a href="../math/Quaternion.html">Quaternion</a></code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">a</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">b</span>:<a href="Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Quaternion.html">Quaternion</a></code></td>
</tr>
</table>
</div>
<a name="toEuler()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toEuler</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function toEuler():<a href="../math/Number3D.html">Number3D</a></code>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/Number3D.html">Number3D</a></code></td>
</tr>
</table>
</div>
<a name="toString()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function toString():String</code>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code></td>
</tr>
</table>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="DEGTORAD"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DEGTORAD</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const DEGTORAD:Number</code>
</div>
<a name="EPSILON"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">EPSILON</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const EPSILON:Number = 0.000001</code>
</div>
<a name="RADTODEG"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">RADTODEG</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const RADTODEG:Number</code>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
